<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css"></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css"></link>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.draggable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.droppable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.tree.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="disabled" value=""></c:set>
  		<c:set var="ifSelect" value=""></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  			<c:set var="ifSelect" value="false"></c:set>
  		</c:if>
  		<form id="editForm" method="post">
  			<input type="hidden" value="${obj.billing_id}" id="billingId" name="p_billingId"></input>
  			<div class="box">
	  			<table cellspacing="0" cellpadding="0">
	  				<tbody>
						<tr>
							<td class="message">
								<p>单位名称：</p>
							</td>
							<td>
							   <input type="text"  value="${obj.cust_name }"
									class="wd170 " readonly="readonly"  maxLength="20" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>金额：</p>
							</td>
							<td>
								<input type="text" value="${obj.total_price }"
									class="wd170 " readonly="readonly"  maxLength="20" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>取票方式：</p>
							</td>
							<td>
								<vvise:select id="ticketWay" onchange='btnChange(this[selectedIndex].value);' name="p_ticketWay" sqlname="getCodeData" sqlparam="bill_type" className="wd170" width="99%"
	  								defval="${obj.ticket_way}" ifSelect="${ifSelect}" />
							</td>
						</tr>
						<tr id="orderCodeId" >
							<td class="message">
								<p><span>*</span>快递单号：</p>
							</td>
							<td>
								<input type="text" id="orderCode" name="p_orderCode" value="${obj.order_code }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;"></input>
							</td>
						</tr>
						
						<tr>
							<td class="message">
								<p><span>*</span>取票人：</p>
							</td>
							<td>
								<input type="text" id="ticketUser" name="p_ticketUser" value="${obj.ticket_user }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" ></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>取票日期：</p>
							</td>
							<td>
								<input type="text" id="tickctDate" name="p_tickctDate" value="${not empty obj.tickct_date ? obj.tickct_date : now }"
									onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true})"  ${disabled } 
									class="wd170 Wdate" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>取票备注：</p>
							</td>
							<td>
								<input type="text" id="ticketsRemark" name="p_ticketsRemark" value="${obj.tickets_remark }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;" ></input>
							</td>
						</tr>
						
					
					</tbody>
	  			</table>
	  		</div>
        </form>
  </body>
  
 <script type="text/javascript">
    function btnChange(e){
    	if(e==1){
    		$("#orderCodeId").hide();
    	}else{
    		$("#orderCodeId").show();
    	}
		
	}
</script>
</html>